//题型管理编辑。
Ext.define("ES.view.itemtypes.ItemTypesEdit",{
    extend:"Ext.window.Window",
    alias:"widget.itemTypesEdit",
    title:"题型管理",
    width:450,
    height:250,
    layout:"fit",
    modal:true,
    items:{
        xtype:"form",
        defaultType:"textfield",
        frame:true,
        layout:"column",
        buttonAlign:"center",
        defaults:{
            labelSeparator:":",
            labelWidth:78,//标签宽度。
            labelAlign:"right",
            allowBlank:false,//是否允许为空。
            blankText:"不允许为空",
            msgTarget:"side"
        },
        items:[{
            fieldLabel:"题型代码",
            name:"typeCode",
            regex:/^([A-Z|a-z|0-9]+)$/,
            regexText:"题型代码由字母或数字组成",
            columnWidth:1     
        },{
            fieldLabel:"题型名称",
            name:"typeName",
            columnWidth:1
        },{
            fieldLabel:"JS编辑类",
            name:"jsEditClass",
            columnWidth:1 
        },{
            fieldLabel:"解析类全名称",
            name:"analysisClass",
            columnWidth:1,
            allowBlank:true 
        },{
            fieldLabel:"反解析类名称",
            name:"antianalyticClass",
            columnWidth:1,
            allowBlank:true
        },{
            fieldLabel:"程序集名称",
            name:"assemblyName",
            columnWidth:1,
            allowBlank:true 
        },{
            fieldLabel:"描述信息",
            xtype:"textareafield",
            grow:true,
            autoScroll:true,
            name:"description",
            columnWidth:1,
            allowBlank:true  
        }],
        buttons:[{
            text:"保存",
            action:"btnSave",
            formBind:true,
            disabled:true,
            tooltip:"保存数据"     
        },{
            text:"取消",
            action:"btnCancel",
            tooltip:"关闭窗口"
        }]
    },
    initComponent:function(){
        this.callParent(arguments);
    }
})